package com.yafengliang.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author yafengliang@yeah.net
 * @Description
 * @date 2021/4/21 17:19
 */
@Controller
public class HelloController {

    @RequestMapping(value = "/hello")
    @ResponseBody
    public String toHello() {
        return "Hello world";
    }
}
